import request from '@/utils/request'

// 获取-部门列表
export const getDepartmentList = () => {
  return request({
    url: '/company/department'
  })
}
// 删除-部们详情
export const delDepartment = (id) => {
  return request.delete(`/company/department/${id}`)
}
// 新增-部门

export const addDepartment = (data) => {
  return request.post('/company/department', data)
}

// 获取-部门负责人
export const getMangerList = (id) => request.get('/sys/user/simple')

// 修改-部门详情
export const updataDepartment = (id, data) => request.put(`/company/department/${id}`, data)
